{% extends "light.twig" %}

{% block title %}{% if search_results.label == null%}Onki Light{% else %}
    ONKI: {% if search_results.label != null %}{{ search_results.vocab }}: {{ search_results.label }}{% else %}{{ search_results.vocab }}{% endif %}
    {% endif %}
{% endblock %}
{% block content %}
  {% if vocab.title != null or search_results != null %}
  	{% include 'vocab-search-nav-bar.twig' %}
    <div id="vocab-content">
  	{% if search_results %}
       {% include 'concept-info.twig' %}
  	{% else %}
  	  <span class="header-text-small-font">{% trans %}Virhe: Sanastosta ei löytynyt pyytämääsi käsitettä{% endtrans %}{% if term %} "{{ term }}"{% endif %}!</span>
  	{% endif %}
    </div>
  {% else %}
  {% include "infobox.twig" %}
    <div class="error-message" style="margin-top: 20px; text-align: center;">
      <span class="header-text-font">{% trans "Virhe: Pyydettyä sanastoa" %} '{{ vocab_id }}' {% trans "ei löytynyt palvelimelta!" %}</span>
    </div>
  {% endif %}
{% endblock %}
